package three;

/**
 * @author zzb
 * @since 2021-01-12
 */

//ConcreteBuilder
public class ManBuilder implements PersonBuilder{

  Person person;

  public ManBuilder() { person = new Man(); }

  @Override
  public void buildHead() {
    person.setHead("建造男人头部");
  }

  @Override
  public void buildBody() {
    person.setBody("建造男人身体");
  }

  @Override
  public void buildFoot() {
    person.setFoot("建造男人脚");
  }

  @Override
  public Person buildPerson() {
    return person;
  }
}
